package tsou.cn.glidetest;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import tsou.cn.glidetest.Glide.MyGlideUrl;

public class UrlHaveTokenActivity extends AppCompatActivity {

    private ImageView mIv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_url_have_token);
        initView();
    }

    private void initView() {
        mIv = (ImageView) findViewById(R.id.iv);

        String url = "https://unsplash.it/200/200?random&15&token=d9caa6e02c990b0a";
        Glide.with(this)
                .load(new MyGlideUrl(url))
                .into(mIv);
    }
}
